import request from '@/utils/request'

/**
 * @param 新增销售目标
 */
export function saveOrUpdateSalestarget(data) {
  return request({
    url: '/ord/sales/target/save',
    method: 'post',
    data
  })
}

/**
 * @param 获取销售目标列表
 */
export function getSalestargetList(query) {
  return request({
    url: '/ord/sales/target/list',
    method: 'get',
    params: query
  })
}
/**
 * @param 目标删除
 */
export function delSalestarget(ids) {
  return request({
    url: '/ord/sales/target/delete/' + ids,
    method: 'post'
  })
}
/**
 * @param 目标详情
 */
export function getTargetDeatail(id) {
  return request({
    url: '/ord/sales/target/get/' + id,
    method: 'get'
  })
}
